package mobi.hami.huapin.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SkuPictureMappingExample {
    /**
     * sku_picture_mapping
     */
    protected String orderByClause;

    /**
     * sku_picture_mapping
     */
    protected boolean distinct;

    /**
     * sku_picture_mapping
     */
    protected List<Criteria> oredCriteria;

    public SkuPictureMappingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * sku_picture_mapping 2018-08-23
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSpucodeIsNull() {
            addCriterion("spucode is null");
            return (Criteria) this;
        }

        public Criteria andSpucodeIsNotNull() {
            addCriterion("spucode is not null");
            return (Criteria) this;
        }

        public Criteria andSpucodeEqualTo(Integer value) {
            addCriterion("spucode =", value, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeNotEqualTo(Integer value) {
            addCriterion("spucode <>", value, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeGreaterThan(Integer value) {
            addCriterion("spucode >", value, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("spucode >=", value, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeLessThan(Integer value) {
            addCriterion("spucode <", value, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeLessThanOrEqualTo(Integer value) {
            addCriterion("spucode <=", value, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeIn(List<Integer> values) {
            addCriterion("spucode in", values, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeNotIn(List<Integer> values) {
            addCriterion("spucode not in", values, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeBetween(Integer value1, Integer value2) {
            addCriterion("spucode between", value1, value2, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpucodeNotBetween(Integer value1, Integer value2) {
            addCriterion("spucode not between", value1, value2, "spucode");
            return (Criteria) this;
        }

        public Criteria andSpuidIsNull() {
            addCriterion("spuid is null");
            return (Criteria) this;
        }

        public Criteria andSpuidIsNotNull() {
            addCriterion("spuid is not null");
            return (Criteria) this;
        }

        public Criteria andSpuidEqualTo(Integer value) {
            addCriterion("spuid =", value, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidNotEqualTo(Integer value) {
            addCriterion("spuid <>", value, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidGreaterThan(Integer value) {
            addCriterion("spuid >", value, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("spuid >=", value, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidLessThan(Integer value) {
            addCriterion("spuid <", value, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidLessThanOrEqualTo(Integer value) {
            addCriterion("spuid <=", value, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidIn(List<Integer> values) {
            addCriterion("spuid in", values, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidNotIn(List<Integer> values) {
            addCriterion("spuid not in", values, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidBetween(Integer value1, Integer value2) {
            addCriterion("spuid between", value1, value2, "spuid");
            return (Criteria) this;
        }

        public Criteria andSpuidNotBetween(Integer value1, Integer value2) {
            addCriterion("spuid not between", value1, value2, "spuid");
            return (Criteria) this;
        }

        public Criteria andSourceIsNull() {
            addCriterion("source is null");
            return (Criteria) this;
        }

        public Criteria andSourceIsNotNull() {
            addCriterion("source is not null");
            return (Criteria) this;
        }

        public Criteria andSourceEqualTo(Integer value) {
            addCriterion("source =", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotEqualTo(Integer value) {
            addCriterion("source <>", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThan(Integer value) {
            addCriterion("source >", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThanOrEqualTo(Integer value) {
            addCriterion("source >=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThan(Integer value) {
            addCriterion("source <", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThanOrEqualTo(Integer value) {
            addCriterion("source <=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceIn(List<Integer> values) {
            addCriterion("source in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotIn(List<Integer> values) {
            addCriterion("source not in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceBetween(Integer value1, Integer value2) {
            addCriterion("source between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotBetween(Integer value1, Integer value2) {
            addCriterion("source not between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andMastertagIsNull() {
            addCriterion("mastertag is null");
            return (Criteria) this;
        }

        public Criteria andMastertagIsNotNull() {
            addCriterion("mastertag is not null");
            return (Criteria) this;
        }

        public Criteria andMastertagEqualTo(Integer value) {
            addCriterion("mastertag =", value, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagNotEqualTo(Integer value) {
            addCriterion("mastertag <>", value, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagGreaterThan(Integer value) {
            addCriterion("mastertag >", value, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagGreaterThanOrEqualTo(Integer value) {
            addCriterion("mastertag >=", value, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagLessThan(Integer value) {
            addCriterion("mastertag <", value, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagLessThanOrEqualTo(Integer value) {
            addCriterion("mastertag <=", value, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagIn(List<Integer> values) {
            addCriterion("mastertag in", values, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagNotIn(List<Integer> values) {
            addCriterion("mastertag not in", values, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagBetween(Integer value1, Integer value2) {
            addCriterion("mastertag between", value1, value2, "mastertag");
            return (Criteria) this;
        }

        public Criteria andMastertagNotBetween(Integer value1, Integer value2) {
            addCriterion("mastertag not between", value1, value2, "mastertag");
            return (Criteria) this;
        }

        public Criteria andPictuireIsNull() {
            addCriterion("pictuire is null");
            return (Criteria) this;
        }

        public Criteria andPictuireIsNotNull() {
            addCriterion("pictuire is not null");
            return (Criteria) this;
        }

        public Criteria andPictuireEqualTo(String value) {
            addCriterion("pictuire =", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireNotEqualTo(String value) {
            addCriterion("pictuire <>", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireGreaterThan(String value) {
            addCriterion("pictuire >", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireGreaterThanOrEqualTo(String value) {
            addCriterion("pictuire >=", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireLessThan(String value) {
            addCriterion("pictuire <", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireLessThanOrEqualTo(String value) {
            addCriterion("pictuire <=", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireLike(String value) {
            addCriterion("pictuire like", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireNotLike(String value) {
            addCriterion("pictuire not like", value, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireIn(List<String> values) {
            addCriterion("pictuire in", values, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireNotIn(List<String> values) {
            addCriterion("pictuire not in", values, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireBetween(String value1, String value2) {
            addCriterion("pictuire between", value1, value2, "pictuire");
            return (Criteria) this;
        }

        public Criteria andPictuireNotBetween(String value1, String value2) {
            addCriterion("pictuire not between", value1, value2, "pictuire");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Integer value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Integer value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Integer value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Integer value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Integer> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Integer> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Integer value1, Integer value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDisplayorderIsNull() {
            addCriterion("displayorder is null");
            return (Criteria) this;
        }

        public Criteria andDisplayorderIsNotNull() {
            addCriterion("displayorder is not null");
            return (Criteria) this;
        }

        public Criteria andDisplayorderEqualTo(Integer value) {
            addCriterion("displayorder =", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotEqualTo(Integer value) {
            addCriterion("displayorder <>", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderGreaterThan(Integer value) {
            addCriterion("displayorder >", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderGreaterThanOrEqualTo(Integer value) {
            addCriterion("displayorder >=", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderLessThan(Integer value) {
            addCriterion("displayorder <", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderLessThanOrEqualTo(Integer value) {
            addCriterion("displayorder <=", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderIn(List<Integer> values) {
            addCriterion("displayorder in", values, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotIn(List<Integer> values) {
            addCriterion("displayorder not in", values, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderBetween(Integer value1, Integer value2) {
            addCriterion("displayorder between", value1, value2, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotBetween(Integer value1, Integer value2) {
            addCriterion("displayorder not between", value1, value2, "displayorder");
            return (Criteria) this;
        }

        public Criteria andGmt_createIsNull() {
            addCriterion("gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andGmt_createIsNotNull() {
            addCriterion("gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andGmt_createEqualTo(Date value) {
            addCriterion("gmt_create =", value, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createNotEqualTo(Date value) {
            addCriterion("gmt_create <>", value, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createGreaterThan(Date value) {
            addCriterion("gmt_create >", value, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_create >=", value, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createLessThan(Date value) {
            addCriterion("gmt_create <", value, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createLessThanOrEqualTo(Date value) {
            addCriterion("gmt_create <=", value, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createIn(List<Date> values) {
            addCriterion("gmt_create in", values, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createNotIn(List<Date> values) {
            addCriterion("gmt_create not in", values, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createBetween(Date value1, Date value2) {
            addCriterion("gmt_create between", value1, value2, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_createNotBetween(Date value1, Date value2) {
            addCriterion("gmt_create not between", value1, value2, "gmt_create");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedIsNull() {
            addCriterion("gmt_modified is null");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedIsNotNull() {
            addCriterion("gmt_modified is not null");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedEqualTo(Date value) {
            addCriterion("gmt_modified =", value, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedNotEqualTo(Date value) {
            addCriterion("gmt_modified <>", value, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedGreaterThan(Date value) {
            addCriterion("gmt_modified >", value, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_modified >=", value, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedLessThan(Date value) {
            addCriterion("gmt_modified <", value, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedLessThanOrEqualTo(Date value) {
            addCriterion("gmt_modified <=", value, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedIn(List<Date> values) {
            addCriterion("gmt_modified in", values, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedNotIn(List<Date> values) {
            addCriterion("gmt_modified not in", values, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedBetween(Date value1, Date value2) {
            addCriterion("gmt_modified between", value1, value2, "gmt_modified");
            return (Criteria) this;
        }

        public Criteria andGmt_modifiedNotBetween(Date value1, Date value2) {
            addCriterion("gmt_modified not between", value1, value2, "gmt_modified");
            return (Criteria) this;
        }
    }

    /**
     * sku_picture_mapping
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * sku_picture_mapping 2018-08-23
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}